function ret=randomMat()
 x=rand;
 y=rand;
 z=rand;
 r=rand*2*pi;
 l=sqrt(x^2+y^2+z^2);
 ret=[x/l*r y/l*r z/l*r];
endfunction
